package com.stork.cms.activity;

import com.stork.cms.R;

import android.os.Bundle;
import android.app.ActionBar;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;

public class Splash extends Activity {
	
	ActionBar ab;
	Thread logoTimer;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_splash);
		
		ab=getActionBar();
		ab.setDisplayShowTitleEnabled(false);
		Thread logoTimer = new Thread() {
        public void run(){
            try{
                int logoTimer = 0;
                while(logoTimer < 1500){
                    sleep(100);
                    logoTimer = logoTimer +100;
                };
                Intent i=new Intent(Splash.this,Login.class);
//				i.putExtra("li", link);
				startActivity(i);
            }
             
            catch (InterruptedException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
             
            finally{
                finish();
            }
        }
    };
     
    logoTimer.start();

}
	
}
